<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>

<th:block th:fragment="robot-modal">
    <el-dialog :title="form.agentId?'重命名机器人':'创建机器人'" :visible.sync="form.visible" center width="500px">
        <el-form :model="form">
            <el-form-item label="机器人名称" label-width="100px">
                <el-input v-model="form.agentName" autocomplete="off" placeholder="请输入机器人名称" maxlength="24"></el-input>
            </el-form-item>
        </el-form>
        <div slot="footer" class="dialog-footer">
            <el-button size="small" @click="form.visible = false">取 消</el-button>
            <el-button size="small" type="primary" @click="handleSaveRobot">确 定</el-button>
        </div>
    </el-dialog>
</th:block>

</body>
</html>